<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="id1">

</div>

  <script>
    let id1=document.getElementById('id1');
    //id1.innerText='123';//修改文本的值
    id1.innerHTML='<strong>111111<strong/>';//可以解析HTML文本标签
    id1.style.color='red';
    id1.style.font='黑体';
    id1.style.fontSize='200px';
    id1.style.padding='2em';
  </script>

</body>
</html>